package com.zhaungwei.weather.vo;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * City.
 *
 * @author LeviCoder
 * @create 2019-03-21 23:35
 */
@XmlRootElement(name = "d") // 元素
@XmlAccessorType(XmlAccessType.FIELD) //什么类型 字段
@Data
public class City {
    @XmlAttribute(name = "d1") // 属性
    private String cityId;

    @XmlAttribute(name = "d2")
    private String cityName;

    @XmlAttribute(name = "d3")
    private String cityCode;

    @XmlAttribute(name = "d4")
    private String province;
}
